package com.hmall.common.client;

import com.hmall.common.dto.Address;
import com.hmall.common.dto.Item;
import com.hmall.common.dto.PageDTO;
import com.hmall.common.dto.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "userservice")
public interface UserClient {

    @GetMapping("address/{id}")
    Address findAddressById(@PathVariable("id") Long id);

    @PostMapping("user/balance")
     int updateBalance(@RequestBody User user);
}
